#include <iostream>
#include <string>
#include <string.h>
#include "log.hpp"
#include "udpServer.hpp"
int main(int argc,char* argv[]){
    if(argc != 2){
        std::cerr<<"Usage: "<<argv[0]<<"server_port"<<std::endl;
        return 1;
    }
    uint16_t server_port = std::stoi(argv[1]);
    std::unique_ptr<MY::udpServer>udpserver_ptr = std::make_unique<MY::udpServer>(server_port);
    udpserver_ptr->init();
    udpserver_ptr->start();
    return 0;
}